/**
 * 
 */
package cw.serviceImp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cw.entity.Team;
import cw.mapper.TeamMapper;
import cw.service.TeamService;

/**
 * @author Administrator
 *
 */
@Service("TeamService")
public class TeamServiceImpl implements TeamService {

	@Resource
	private TeamMapper teamMapper;
	
	/* (non-Javadoc)
	 * @see cw.service.TeamService#deleteByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return teamMapper.deleteByPrimaryKey(id);
	}

	/* (non-Javadoc)
	 * @see cw.service.TeamService#insert(cw.entity.Team)
	 */
	@Override
	public int insert(Team record) {
		// TODO Auto-generated method stub
		return teamMapper.insert(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.TeamService#insertSelective(cw.entity.Team)
	 */
	@Override
	public int insertSelective(Team record) {
		// TODO Auto-generated method stub
		return teamMapper.insertSelective(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.TeamService#selectByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public Team selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return teamMapper.selectByPrimaryKey(id);
	}

	/* (non-Javadoc)
	 * @see cw.service.TeamService#updateByPrimaryKeySelective(cw.entity.Team)
	 */
	@Override
	public int updateByPrimaryKeySelective(Team record) {
		// TODO Auto-generated method stub
		return teamMapper.updateByPrimaryKeySelective(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.TeamService#updateByPrimaryKey(cw.entity.Team)
	 */
	@Override
	public int updateByPrimaryKey(Team record) {
		// TODO Auto-generated method stub
		return teamMapper.updateByPrimaryKey(record);
	}

	/* (non-Javadoc)
	 * @see cw.service.TeamService#queryTeam(java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer)
	 */
	@Override
	public List<Team> queryTeam(String teamName,
			String description, Integer offset, Integer pageSize) {
		// TODO Auto-generated method stub
		return teamMapper.queryTeam(teamName, description, offset, pageSize);
	}

	/* (non-Javadoc)
	 * @see cw.service.TeamService#getTotal(java.lang.Integer, java.lang.String, java.lang.String)
	 */
	@Override
	public Integer getTotal(String teamName, String description) {
		// TODO Auto-generated method stub
		return teamMapper.getTotal(teamName, description);
	}

	@Override
	public List<Team> query() {
		// TODO Auto-generated method stub
		return teamMapper.query();
	}

}
